﻿using System;

namespace Yaml.Presentation.Tokens {
    public class TagDirectiveToken : Token {
        private string handle;
        private string prefix;

        public TagDirectiveToken(Mark start, Mark end, string handle, string prefix)
            : base(start, end) {
            this.handle = handle;
            this.prefix = prefix;
        }

        public string Handle {
            get { return this.handle; }
        }

        public string Prefix {
            get { return this.prefix; }
        }

        public override String ToString() {
            return "#<" + this.GetType().Name + " handle='" + Handle + "' prefix='" + Prefix + "' start=" + Start.ToString() + " end=" + End.ToString() + ">";
        }
    }
}